home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / languages / pcq_incl3v1.lha / Resources / Misc.i < prev    next >
Encoding:
Text File  |  1994-04-15  |  941 b   |  29 lines

  1.  
  2. {$I   "Include:Exec/Libraries.i"}
  3.  
  4.  
  5. CONST
  6. {
  7.  * Unit number definitions.  Ownership of a resource grants low-level
  8.  * bit access to the hardware registers.  You are still obligated to follow
  9.  * the rules for shared access of the interrupt system (see
  10.  * exec.library/SetIntVector or cia.resource as appropriate).
  11.  }
  12.    MR_SERIALPORT  = 0; { Amiga custom chip serial port registers
  13.                              (SERDAT,SERDATR,SERPER,ADKCON, and interrupts) }
  14.    MR_SERIALBITS  = 1; { Serial control bits (DTR,CTS, etc.) }
  15.    MR_PARALLELPORT= 2; { The 8 bit parallel data port
  16.                              (CIAAPRA & CIAADDRA only!) }
  17.    MR_PARALLELBITS= 3; { All other parallel bits & interrupts
  18.                              (BUSY,ACK,etc.) }
  19.  
  20. {
  21.  * Library vector offset definitions
  22.  }
  23.    MR_ALLOCMISCRESOURCE =   (LIB_BASE);              { -6 }
  24.    MR_FREEMISCRESOURCE  =   (LIB_BASE-LIB_VECTSIZE); { -12 }
  25.  
  26.    MISCNAME = "misc.resource";
  27.  
  28.  
  29.